package io.kiki.stack.netty.serialization;

import io.kiki.stack.netty.exception.CodecException;

public interface Serializer {

    byte[] serialize(final Object object) throws CodecException;


    <T> T deserialize(final byte[] bytes, String classOfT) throws CodecException;
}
